package com.mvp.shq.washer.ui.shop.order.myorder;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.MyOrderRestult;
import java.util.Map;

import io.reactivex.Observable;


/**
 * Created by westing on 2017/10/11.
 */

public interface MyOrderConstract {
    interface View extends BaseView{
        void getOrders(MyOrderRestult myOrderRestult);
        void orderTakeS();
    }
    interface Model extends BaseModel{
        Observable<BaseResult<MyOrderRestult>> getOrders(String token, String userId, Map<String,String> params,int pageNo,int pageSize);
        Observable<BaseResult<String>> orderTake(String token,String userId,String orderNo);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getOrders(Map<String,String> params,int pageNo,int pageSize);
        abstract void orderTake(String orderNo);
    }
}
